package com.beamfield.dao.sys;

import com.beamfield.model.AdminDp;
import com.beamfield.model.AdminDpExample;
import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

@Component
public interface AdminDpMapper {
    int countByExample(AdminDpExample example);

    int deleteByPrimaryKey(Long id);

    int insert(AdminDp record);

    int insertSelective(AdminDp record);

    List<AdminDp> selectByExample(AdminDpExample example);

    AdminDp selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(AdminDp record);

    int updateByPrimaryKey(AdminDp record);

	List<AdminDp> selectByHaveSecond(
			@Param("name")String name, 
			@Param("type")Integer type, 
			@Param("beam_id")Long beam_id);

    List<AdminDp> selectByBeamId(@Param("beamId") String beamId);

    String selectBeamIdByRoleId(@Param("roleId") Long roleId);
}